package cn.edu.zut.cs.DAO;

import cn.edu.zut.cs.Model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

public abstract class AbstractStudentDAO implements StudentDAO{

    List<Student> students;
    JdbcTemplate jdbcTemplate;
    @Resource(name = "List")
    public void setStudents(List<Student> students) {
        this.students = students;
    }
    @Autowired
    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }
}
